package com.xuzmian.demo.kotlin

fun main(args: Array<String>) {
    print(multiLineTemplate)

    println("--------Inherit------------")
    var derivedClass = DerivedClass(1, "test class derived")
    derivedClass.abstractFun()
    derivedClass.foo()
}


//注释掉上面的带参数的重载方法，该方法就是程序入口方法
fun main() {
    println("no grgs main method output：hello kotlin")
}

public class Main {
    fun main(args: Array<String>) {
        println("class Main have grgs main method output：hello kotlin")
    }

    companion object {
        fun main(args: Array<String>) {
            println("class Main companion object have grgs main method output：hello kotlin")
        }
    }
}